package com.owen.power.job.init.job;

import org.springframework.stereotype.Component;
import tech.powerjob.worker.core.processor.ProcessResult;
import tech.powerjob.worker.core.processor.TaskContext;
import tech.powerjob.worker.core.processor.TaskResult;
import tech.powerjob.worker.core.processor.sdk.BroadcastProcessor;

import java.util.List;

@Component
public class TestBroadcastJob implements BroadcastProcessor {

    @Override
    public ProcessResult process(TaskContext taskContext) throws Exception {
        return null;
    }

    @Override
    public ProcessResult preProcess(TaskContext context) throws Exception {
        return BroadcastProcessor.super.preProcess(context);
    }

    @Override
    public ProcessResult postProcess(TaskContext context, List<TaskResult> taskResults) throws Exception {
        return BroadcastProcessor.super.postProcess(context, taskResults);
    }
}
